package com.ly.common.exception;

/**
 * 自定义控制层异常类
 * @Auther: lzw
 * @Date: 2018/6/4
 */
public class ControllerException extends RuntimeException {

    private String exceptionCode;
    private String exceptionMesssage;

    public ControllerException(String exceptionCode, String exceptionMessage) {
        this.exceptionCode = exceptionCode;
        this.exceptionMesssage = exceptionMessage;
    }

    public ControllerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public ControllerException(String message, Throwable cause) {
        super(message, cause);
    }

    public ControllerException(String message) {
        super(message);
    }

    public ControllerException(Throwable cause) {
        super(cause);
    }

    public String getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(String exceptionCode) {
        this.exceptionCode = exceptionCode;
    }

    public String getExceptionMesssage() {
        return exceptionMesssage;
    }

    public void setExceptionMesssage(String exceptionMesssage) {
        this.exceptionMesssage = exceptionMesssage;
    }

}
